package com.ys.entity.purchase;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCG_PurchaseByOrderNp", catalog="Id")
public class TcgPurchaseByOrderNp extends BaseEntity<TcgPurchaseByOrderNp> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="SpBm", nameJava="spBm", typeDataBase="varchar")
	private String spBm;
	@YsField(nameDataBase="NegotiatedPrice", nameJava="negotiatedPrice", typeDataBase="decimal")
	private BigDecimal negotiatedPrice;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcgPurchaseByOrderNp setId(Long id) {
		this.id = id;
		return this;
	}
	public String getSpBm() {
		return spBm;
	}
	public TcgPurchaseByOrderNp setSpBm(String spBm) {
		this.spBm = spBm;
		return this;
	}
	public BigDecimal getNegotiatedPrice() {
		return negotiatedPrice;
	}
	public TcgPurchaseByOrderNp setNegotiatedPrice(BigDecimal negotiatedPrice) {
		this.negotiatedPrice = negotiatedPrice;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcgPurchaseByOrderNp setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcgPurchaseByOrderNp setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcgPurchaseByOrderNp setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcgPurchaseByOrderNp tcgPurchaseByOrderNp(
		String spBm,
		BigDecimal negotiatedPrice,
		Integer status
			) {
		TcgPurchaseByOrderNp entity = new TcgPurchaseByOrderNp();
		entity.setSpBm(spBm);
		entity.setNegotiatedPrice(negotiatedPrice);
		entity.setStatus(status);
		return entity;
	}
}